﻿#define SQLDEBUG
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using easysql;
using System.Text.RegularExpressions;
namespace Test
{
    class Article
    {
        public int id
        {
            set;
            get;
        }
        public string title
        {
            get;
            set;
        }

        public String content
        {
            get;
            set;
        }
        public int? folder_id
        {
            get;
            set;
        }

    }


    class Program
    {

        static void Main(string[] args)
        {
            //  var dh = DBHelperFactory.CreateMysqlHelper("192.168.1.223", "smsdb", "root", "youotech");
            String connString = "server=192.168.1.223;database=smsdb;Persist Security Info=False;uid=root;pwd=youotech";

            var connPool = new MySqlConnPool(connString);
            var dh = DBHelperFactory.CreateMysqlHelper(connString);


            DateTime sdt = DateTime.Now;
            for (var i = 0; i < 1000; i++)
            {
                var c = dh.ExecuteScalar("select count(*) from SendedOutBox");
            }
            DateTime edt = DateTime.Now;

            Console.WriteLine((edt - sdt).Ticks / 10000000.0);
            //asdf
            ///test
            //asdfasdfasdf
            //adsfas
            ///aaa
            /// /sadfas
            /// 
            /// asdfasdf
            /// 
            /// asdfas
            /// testsaaa
            /// //asdfasdf
            /// ///asdfas
        }

    }
}
